import csv

import requests
from lxml import etree

url = "http://localhost:8080/snack/admin/user/mainToUserinfo"

header = {
"Cookie": "JSESSIONID=1524D8E6D3CC88FAFC8281AD5615154F"
}

resp = requests.get(url, headers=header)
print(resp.text)
html = etree.HTML(resp.text)
content = html.xpath('//*[@id="table_id_example"]/tbody/tr[1]/td[1]/text()')
title = html.xpath('//*[@id="table_id_example"]/thead/tr//text()')

print(title)
print(content)